Refactoring to Patterns

نویسنده

  • Joshua Kerievsky
چکیده

class Loan { ... protected Loan(...) { ... } } public class TermLoan extends Loan { public TermLoan(...) { super(...); } } public class Revolver extends Loan { public Revolver(...) { super(...); } } public class RCTL extends Loan { public RCTL(...) super(...); } } Refactoring To Patterns, Copyright © 2001, Joshua Kerievsky, Industrial Logic, Inc. All Rights Reserved. Page 17 of 87 The abstract Loan superclass constructor is protected, and the constructors for the three subclasses are public. We’ll focus on the TermLoan class. The first step is to protect its constructor: public class TermLoan extends Loan { protected TermLoan(...){

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Assessing the Quality of Refactoring Patterns for Introducing Design Patterns

Refactoring is a well-known process to improve the code design of object-oriented programs. Recently, several literatures focus on refactoring with introducing design patterns that are general repeated solutions to common problems in software design. For making it easy to perform such refactoring, a lot of refactoring patterns are proposed. Each refactoring pattern includes a description of ref...

متن کامل

Towards an Investigation of Opportunities for Refactoring to Design Patterns

Refactoring is a well-known process to improve the maintainability of object-oriented software. Recently, it is said that refactoring to design patterns can improve design quality of maintaining software. However, there are a few case studies of refactoring to design patterns. This position paper shows our approach to investigate opportunities for refactoring to design patterns in software syst...

متن کامل

Towards an Assessment of the Quality of Refactoring Patterns

Refactoring is a well-known process that is thought to improve the maintainability of object-oriented software. Although a lot of refactoring patterns are introduced in several pieces of literature, the quality of refactoring patterns is not always discussed. Therefore, it is difficult for developers to determine which refactoring patterns should be given priority. In this paper, we propose two...

متن کامل

Ranking Refactoring Patterns Using the Analytical Hierarchy Process

This paper describes how to rank refactoring patterns to improve a set of quality attributes of a piece of software. The Analytical Hierarchy Process (AHP) is used to express the relative importance of the quality attributes and the relative importance of refactoring patterns in regards to those selected quality attributes. This ranking of refactoring patterns can be used to focus the refactori...

متن کامل

Formal Use of Design Patterns and Refactoring

Design patterns has been used very effectively in object-oriented design for a long time. Refactoring is also widely used for producing better maintainable and reusable designs and programs. In this paper, we investigate how design patterns and refactoring rules are used in a formal method by formulating and showing them as refinement laws in the calculus of refinement of component and object-o...

متن کامل

A Multi-Objective Refactoring Approach to Introduce Design Patterns and Fix Anti-Patterns

Refactoring is widely recognized as a crucial technique applied when evolving object-oriented software systems. Refactoring has promised, if applied well, to improve software readability, maintainability and extendibility. In general, to improve software quality, most of existing studies focus on the correction of anti-patterns or enhancing specific quality metrics. However, this may not be suf...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004